package com.myapp.ruyixing.http;

import org.json.JSONObject;

import com.myapp.ruyixing.model.ModifyPassword;

public class ModifyPasswordParser extends RYJSONParser {
	@Override
	public Object parse(JSONObject jsonObject) {
		int error = getErrno(jsonObject);
		if (getErrno(jsonObject) != NO_ERROR) {
			return null;
		}

		ModifyPassword modify = new ModifyPassword();

		JSONObject data = jsonObject.optJSONObject("data");
		modify.bduss = data.optString("bduss");
		modify.nickname = data.optString("nickname");
		return modify;
	}
}
